<%@page contentType="text/html" pageEncoding="UTF-8"%>  

<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html lang="zh-CN"> 
<head> 
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> 
    <title>Admin Console - <decorator:title /></title> 
    <style type="text/css" media="screen">
        @import url("/styles/admin/tools.css");
        @import url("/styles/admin/typo.css");
        @import url("/styles/admin/forms.css");
        @import url("/styles/admin/displaytag.css");
		@import url("/styles/admin/layout-navtop.css");
        @import url("/styles/admin/layout.css");
    </style>
</head> 
<body> 

<div id="page">

    <div id="header" class="clearfix">
        <div id="branding">
			<h1><a href="http://www.rem365.com" title="REM365.COM">REM365.COM</a></h1>
			<h2>Admin Console</h2>
        </div><!-- end branding -->
        <div id="search"><h2>Hello! 
            <%
         String authorization = request.getHeader("Authorization");
         sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder();
         String decoded = new String(dec.decodeBuffer(authorization.substring(6)));
         String[] userAndPass = decoded.split(":", 2);
         out.println(userAndPass[0]);          
            %>
            </h2>
        </div>
        <hr />
    </div><!-- end header -->
    
    <div id="content" class="clearfix">
    
        <div id="nav">
            <div class="wrapper">
            <h2 class="accessibility">Navigation</h2>
            <ul class="clearfix">
                 <li><a href="/admin/home">Home</a></li>
                 <li><a href="/admin/user">User</a></li>
                 <li class="last"><a href="/admin/debug">DEBUG</a></li>
            </ul>
            </div>
            <hr />
        </div><!-- end nav -->
    
          		
		<decorator:body />
		
	</div><!-- end content -->
      
    <div id="footer" class="clearfix">
        <p>
		Copyright (&copy;) rem365.com 2011
		</p>
    </div><!-- end footer -->
        
</div><!-- end page -->


</body> 
</html> 